Active menu item in file mode based on this.mode