added logic to the products controller and added markup for all the forms