move header to appropriate position