event and segment css and toggle done