updated popups to display in different placements