adding changes to datepicker to pick the right month