Implemented timer to refresh status every 5 seconds