update for ajax routes