Moved main content container into loop template file