begin of the popup class