Add parameter tab_name to handle mutiple tabs with pagination