Restoring state. Clearing autocomplete states when switching transacion type