refactored failure reports controller