Add type with success or error indicator to each result row, working with JS from Android version