fixed lead history table and adde close lead command