code for main site