updated session class and view