Got rid of NullPointerException from getPanels returning null