added spans in popup to navigate between popups