access dialog from model