remove console log
generate default main page when fail