Fixed order of JS files. All dropdowns working now
Application layout only for logged in users.