Implemented button action for spinning the layout.