front end work for player