added onpause clarification