Updated ssn_hide_header function to hide footer too.