finished working example, still flickering on submit?