Roberto's changes for toggling status of plans