add render func to Entity