implementing behavior xml loader and model