handler for the play app