add params to indentify if called willAppear and didAppear