added activity register method