ajax in global page working