Implemented resizing and scrolling