code and draw the header