chagnges at endpopup class

enpopup no inheritates from popup