improve UI and fix gradle warning