To reduce repetition of code, simplify the process of adding header buttons and remove the need for many handler functions.