generate views with avatar field