add registerActivity