demo of wrapping onclick event in rx