added new callback to set frame entity