$.ajax refactoring, cause selection loading fix