using ajax for loader