Added debug function
updated nav bar