started to implement pause and play