if(parent.location != self.location)
{
parent.location=self.location;
}