added log out and other session features