implemented delegate methods, helper methods for adding tasks