Fix issue in Tree widget (now first click does select a new node)

Fix issue in loop task config resulting in being impossible to select anything else than the first task
Fix layout issue in loop and save task