Refractor and update

Move global html into includes for easily changing in the future. start
bringing in helper functions. and some more css