Resolving conflict with the script in team detail and the button