Display the edit box only when editing is permitted