Finally got toggle to work on collapse with errors