code cleanup, and fixed the bug where i could not add a task if a project had no initial tasks