edited tasks function to recognize headers, and tab outline accordingly