cleans up tabs