Adding bar to the page

Variable setting and adding the bar to the page.