Creates react classes for tasks and projects and adds click handler