Correctly handle back when there are more than two panels