new add task hide modal logic