Added ui code to remove agent from database