fix nav bar and alert box