automatic removal of past events function added. fixed bug in deleteAllOverdue and deleteAllDone