Bug fix for where an older dataset upload would crash pewi. Standardizing the use of the popup class.