method view/edit