add function close show detail and edit screen show detail