Finalize popup work