updated toggle menu with style function