fix error 500 in extension install

change the event from submit (form) to click (button)