add warning message for agent has no event
add delete agent functionality