added multiple opened popups feature