Changed onclick event for button
Fixed button issue