updated tasks and notes api controllers