CHG: diffrent classes for switching mode and setting current date in header