adjusted template layout