fix the main page register