Refactored search statistics UI (#745)