refine structure of index page

pass parameter to index.tpl then display username and link