completed coding for self action registering module