Dialog boxes

added functionality for dialog boxes