heartbeat integration ui and engine implementation