finished wiring up realtime template reloading