Moved header.setZIndex into the drawHeader function