simplfied controller class again