added pauseMusic function