updated tasks controller