refresh page after applying template