standardized how and when we show the edit icon