bug fixes

fix crash when viewfinder app doesn't exist
fix crash when display dialog times out