cleanup and popup messages