Added method for moving tabs