improve ruler UI