implemented new method for responsive menus