main and alert intent passing