Conditionally showing the footer