merging the popup box