adding intent to CompassActivity