chanaged approach: trigger events instead of exiting; changed name to 'pause'