better main page implemented