fix footer not being refreshed