Add show/hide notepad. Refactor notifyContainerResize