removed range() method and set onclick to sentToWidget()