adding a top bar and the canvas inside a div; canvas only takes as much space as its container