add default action if the action attribute is not set.