fixing broken ajax call