added fixes to DialogFragment, passed data into the DialogFragment