fixed another bug
reformat the main page