finishes main content