updated products controller with edit and update