Updated controller to show task added to the same tab