added support for persisting selections through rotation