attached activity listener on register since it was missing