fix popups not happening when changing pages
amends to test examples