added styling and templates