fixed some errors with navigation bar