format and fix bug for cookie menu