Refresh page on template change.

Fixes #3009