Rearranges nav bar and fixes panels