updated tasks controller, index, and show