move dialog functions