fixing issue with change date button