updated edit and show pages