finalize styles and content