spring algorithm bug resolved. UI improved.