added a getName to controller class