update tabs clean code