Add datepicker.min css and js. Fix popover logic