added form submission for tasks