Updated popup method