Added spinner to Dialog

Added spinner to the dialog fragment, and moved the code to instantiate the spinner to the fragment class from the activity class.