using display property instead of visibility property for task heders and footers