editbox drawer refactoring