add click handlers for add line/group, remove