Moved portal modes to the tmpl directory for easier overrides