fixing showing index without header/footer