add the update and delete view and functions