added background and fixed some glitches