session management and web pages set up