Unable to open the mainpage file