Implemented the canvas view