functioning ajax call on landing