changed Button method to on click to on Click