changed popUpActivity to view.popUpActivity