Separation of layouts/templates for multiple modules including error pages