add alert(String, Click) method