implemented main page