Remove cancel()  method

cancel functionality can now be called by passing true to close();
Rename method setContent to appendTargetToDialog