added Header Listener
Header Listener and Main edited