update ui bu ad timer and fix some bugs