fixes popup url