added click action to the header

also refactored the common header initialization routine into a method
in the common module.