modify show result controller for complex input