move common functions to fui.less