Added pagination for ads selection modal