[Application] Extended app.dialog() method to be more optional.