trying out new things for clear button and added automatic canvas width based on screen