add pagination and sort for tags