Added submit handler