Add resizing functionality