change event handlers to work with names instead of weights. Also FP lecture