update background font and improve functions