adding default header/footer event listeners