Made popup functions public