attached dialog with main activity fragment