te edit control functions