finish modal