move play & pause functionality to framework level.