updated how sidebar is populated and how screens are loaded and shown