add on 'error' for ajax call
hmm, gues i'll merge test branch to master