made changes for session id, history pages