added UIAppearance compatibility to control and extended demo accordingly