added ajax call for trainer