1. creating dialog