added security ui trimming