Add AppearanceWindow, bug fixes