lots of cleaning and organizing & logout controller simplified in appController