added functionality to player controls