add Dialogs.java to use dialog more easy