debugging repo menu close control