Couple small tweaks, first we're firing an added event at a lower level, so, leave it at that, second for the detail view find the highest parent task to show as the 'Project' for the current item.