update program with led on click function