add li to ul on cast
compressed lines