Seperated the right panel into a new class