Fixing a bug with the checkboxes, moving them and the canvas into the directive