#onpause added