nav bar and sync method , not finished