Added hooks for styling and reordered templates.