Removed obsolete methods and variables in controller