add rotate functionality to frame