add navi and js functions