refactor _header and style cases