Header dialog refactoring.