filter open and closed todos in index view