using common func to call actions instead of direct call