Added state var editing