includes

abstracted some code into includes for interior pages