working on auto resizing canvas