rewrite: fix show/hide header