added constructor code in headerview