update UI and date check