moved stuff to layout for templates to extend