Resizing and dragging implemented