Sidebar starting to work, fixed null pointers