Added session handling for demonstration purposes, basic index template