reorder BaseController for syntax highlighting glitch