added before/after hooks to update and render of entity to allow easier customized behavior