added spinner/dialog for ajax calls