Unable to publish form due to button not working