changed date directive to filter, improved resolve popover