adding resizing to edit view