fixing a bug in switchview

would not re-render switched items because old state wasn't destroyed