fixed bug in application_helper
fixed up header and footer stuff