Fixed the sidebar rendering

Fixed how the sidebar rendering was being done. updated for the security fix from 2.0 -> 2.1 using the twig render method.