added a method on check box click