fixed controller issues and added to gemfile