fixing some of the reference popups