main page implemented