fix bug in rotation. add 'shrink' button