switched to an .ajax request