Setting options for both "from" and "to" widgets in datepicker range (fixes #381)
Fixing errors