Add compressing method to UI