controls/edit.c not so clean - help please