Fixed ajax form submit bug by declaring task-form div outside of partial.