Extract method of showing header view