added offset to get dialog