change index to popup