Added functionality to hide header/footer.