huge code refactor pt2
panels toggling