Improved logsearch controller