Added interaction between the window and datepicker window