Added a UIDelegate handler.