seperate popup into classes