working on dialog and alerts