auto populate submit button