removed a small optim
fixed template renderer component which was redrawn after layer open, fixed querry connector which did not listen to layer re-open events