migrated to Android Studio, fix dialogs, fix dependencies