move DisplayModes class to the editor