beforePopIn now occurs also after the pop is being redisplayed after being hidden, updated docs accordingly