added logic to hide heading