edits to pagination; angular still hanging