Added datepicker and fixes search on sales