Sidebar event and treating first-level like submenus

I use sidebar a lot. But now I want that the first-level menu should be react and treated like the other submenues because onSelectChange, onAfterSelect for the first-level doesn’t work.
Also the first level menu should be colored marked like the other…

How is this possible?