cleanup and added live update on the controls (play,pause)