refactoring listener activity ref