added pagination + new json routes for tags