updated positioning of canvas