Added editing team names in input and page unload preventing