Call a method on checkbox click