moved canvas code into frontend