changed exception handling for new Intent and startActivity to use NullPointerException and ActivityNotFoundException