solved submit button bug