add event to headerclick