Handle ajax requests for hijax