method onClick for button