display success and failed correctly