implemented controls for media player