added constants. references to registerActivity