main page parsing