adding more logic to visualizatino header view