Changed setCallbacks to then and added always for ajax handlers