Fix bug check empty module chid on update
Move add_routes_resources to funcstions utility
auto add root uri to router