changed header of constructor for ComponentTaskDetail (now has only one parameter - object with data)