added legend action