Creating the application dialog