submit handler now working