Refactor controller.userEvent.viewHandler.showPallet.