moved ajax actions to api subdir