modified the function showHeader