Ajax request handlers complated