Open in a new page. Use [id].js page for inventory to handle all of that. We can add a button to display edit mode.
After editing a inventory moving away from the edit page should be blocked and popup should display asking users to discard their change or continue editing.
Technical Req