added close buttons to popups, prevent popup history