grid cleanup and user save function