add edit register or update