changed submit modal behaviour