fix tab delete in main.py