Added the setOnDismissListener(final View view)

This is important because of "the specified child already has a parent" exception. Then, this method will remove all views when dialog will dismissing