added rotation support and scrolling support