Dialog box example with direct function calls