source code for main site - initial stage