started refactoring message editor ui