adds views for update and show pages