first iteration for main page complete