Removed panel related methods from controller class.