add loss ui