initial work on modal dialog