fix main page display