add tie function and fix nav width