Best way to pass a value to opened overlay?