Added logging in UI class.