added working rotate button, but rotate state does not yet save