Change template layout