add refresh function
fix popover bug