add function to show completed tasks