refactored ui for the editor activity.