Modals close and page refhreses when Inventory forms are submitted