clicking on endpoint head toggles it
clicking on endpoint method also toggles endpoint