abstracted store list from view and added it to controller