Refactored main outline view to use a template