Trying to clean up the controller; added some custom exceptions, changed some ifs to switches. Still working to make this more restful, eventually combining ajax/rant. but maybe implementing a visitor controller