Fix logic for hiding & showing priority change buttons