switch to loading data via ajax