Moved sidebar template to a different file. Enhanced page rendering.