finalize GUI