if you look at the lever from underneath, you'll see the cable and a nobbly bit on the end of that.
You need to unscrew the bolts top and bottom of the old lever, pull the lever forwards (away from the grips) and upwards and it should twist tht nobbly bit out.
you can then replace the new lever in place and tighten up to be as previous.