* success and error callbacks updated for ajax methods.