added intent type and handled openExternalUrl action