make page turning an ajax call