add popover class and click function to field