adding session listener