modifications in server.py and index.tpl for update