refine the ui buffer effect