Template was not working as expected since it send the html on the chain.next, correct this.