added template styling and layouts