slight changes to onClick event.