convert UI to use HTML rather than canvas