added site class and header function