add transition for header switch