Rebuilt timer in onResume function