Close options

Close the popover by button click, outside click, and/or inside click.