implemented ask jquer leave page