Added priority filtering with dymanic button group.