automatically add actions to selection listeners