simplify by removing 'clear completed' button, cont.
move header into own function
more refactorings