added timer to refresh