gui update & avoid compile warning