add minerals count editing in state editor view