Made function to return value from dialog