attempt to implement navbar

see what you can do to help me fix the error.