modified inheritance to work for datepicker widgets