Added and modified the controller for store