focus and refresh so contents of editor remain