adds more logic for handling templates (classes), updates styles