Added dialog status variable
Updated example