Added the dialog function to display the correct sprites dialog