directories corrected for main page