Add query for index action
Add controller index and show actions