set canvas on template load
use index
correct naming for actions