implement cancel and ok button for range picker popover