controller class integrated into player