minor editing of popupActivity