Is it possible to have conditional popup?