iterating main page