Gambas inspired dialog management