added controller/module detection & set to layout variable to make a varying sidebar menu