add handling show edit