Use objects in model to repair dialog exmaple in mobileshowcase