Made the code a little bit clearer, empty the navbar on switching projects