changed button filter based on permits