Retain values of text fields when variables are deleted

Reviewer: Daniel Jao

Issue: None