header setup and anayltics
var