Finished main functionality for entire site