maybe. it has to set the state dynamically because of editing and i was hoping to not have that code exist twice.