remove e.preventDefault(); to get button in the modal works