added sessions methods and views