Extended gemfile and refactored application controller