lots of changes made popup fragments and the way they work