refactoring capture web popin
refactoring group popin