Fixed cancelling progress dialog and further crash. Portrait orientation only set.