finalize widgets