refresh head and foot