improved is_loading, fixes to ajax search