finalize frontend