context saving before hud dismiss