can't find a better solution to know if we are on an edit view ##