added rotation attribute to the UI.