update background and fix bugs