fix #14 , rewrote add task, add updated task/event

the issue is temporarily fixed for favorites and archives but is still
buggy. Bug of new entry task is resolved.