Implemented Ace editor into maineditor controller.. som other small changes