Implemented recursive panel to use in top bar dropdowns.