load pop up refactor