script errors solve&popup's showing middle