better check for ajax controller