added index page and wrote functional tests for stores controller