Fixed some bugs and began to write the DisplayEditor class