changed submit, dropping xhr
added boolean data processing