make the popup work as initial