Added spinner to dialog, implemented toast and overrode the onclick method for the positive dialog button.