initilized version of main page