Router logic and admin template.