standarize how and when we show the edit icon