changed text to an element rather than canvas