show heading only if there is no error