added background, fixed bugs