pause and resume in view