popups now working propely