remove tab logic