Custom Editors and Action class added.

Code refactored.