update action for showing popover and styles