navbar & dropdown receives an on-selection handler

its done this way to have cursor access inside the callback.