add listener for base activity