Made the selectionPanel class to hold logic. It was getting messy