updating logic after edit and new tasks
added data-ajax="false" in 2 places