remove unused variable
page rendering now support background color setting
refactor code