added pause and resume actions