bug in render, change in template was not causing re-render