check availability ajax call