changed equality check to use action name for cross domain compatibility