first server code, added sessioncontroller to display session id as label