update UI to use XML layouts instead of hardcoded
use AlertDialog instead of custom Dialog, get rid of unused libraries