Bug fixes in side menu and thread-safe controls.