Implemented base.html template to remove repeated code. Using Design class instead of variable to manage template design.