maj swipe to dismiss and custom dialog