added click handler unintended closure question