navctrl remove unused function
add leaflet dependency