removed session code since it doesnt work in angular