modifed nav to have width proeprty properly initialised this time