added session to the appController