submit button with bug fix