Main page fixed

Main page functionality restored