trying to implement popup dialogs