how to attached the action to behavior during the run time. ?