How to use a form to manage inventory?