added function for setting up task information and linked them to innerHTMLs of the element