change current table to current command