updated controllers for better rspec testing