Don't show the controls if we're not in player mode.  I think you should move this line into the body of the if statement below.