updating position of canvas text