add smart rendering if pagination is acitve