Added overlay refreshing in editor.