add cell exit monitor and html lua script