add 'all' data-state attribute implementation server-side