finally got mulitdatepicker working properly