starting glance view initialize function.