added session button functionality for users and non-users