now showing spinner whenever ajax calls are made and fixed dialog centering