remove file and modify tabbutton