making submit work