added "history_on_focus_lost" option