moved layout to partial
moved location levels query out of controller and into helper