Added before filter and parameters to application controller. Added dropdownmenu to layout