cleaning up the functionality

Making sure the pages behave as expected. more css tweaks as pages
change and pieces move to the template, or merge with other pages (add
function now on posts pages)