Add toggle directive function, store directive list