fixed bug by prepopulating datepicker with date in url if available