saved profile tempalte in index.hmtl and view set up