added pagination to terms index