Fixed logout in a multi controller environment+Generated events controllers