update function for list your ads + pagination demo