updates session and application controller