modal now uses form submition to resolve promise instead of hijacking the enter key