adding check for wrapper
Properly calculating section classes and adding 2nd sidebar