show header and fix bugs