wip: using local state for operation dropdown doesn't work properly.