fix init main page