Fix preventDefault not stoping default form submit