added ajax loading spinner