refactoring to ace.dart
review comments
Merge pull request #3396 from devoncarew/devoncarew_refactor_ace

refactoring to ace.dart