page context: handle ajax requests