$ 0 0 2nd option is definitely possible. Define actions in different file with Ids. Use this ids to associate. First option is doubtful.