removing previous nav bars when over lapped