MOD: changed template switching to responisble design