New base code for main site