Fixed timer refreshing the UI