adding pause and resume button