alert pop-ups and sort arrow