Added Pause and Mute Functionality

Added the functionality of mute and pause. Fixed Bugs