FINALIZE FORM AND FINISH