separate registerControl/editControl from user control