moved show to before_action in controller to make controller more concise