added comment to popup method