Hide header when no longer visible.  Removed unused code.