attached prototype to nav bar