changed action from on click to on submit and now printing ajax todo (in wrong place though)