Added check on action click to see if action is enabled.