changed method of intent creation with extras