Dynamically building navigation and panels