remove useless code and move Mode from aligntabcommand to aligntabupdater