before dialog
have to alram