Added 2 event listeners for disabling and enabling the headers