using position property for all dialog boxes