fix way of removing content before pushing to canvas