Fix issue where edit button did not remain hidden when hideEditButton=true