AJAX call for planner