refactor
tab edit mode