add auto update function every 10s
modify ui about auto update
add function to save when enter key pressed in inputbox