added functionality to change the date