replace session with session component