support portrait mode and button dancing