doing ajax call to bring subjects