finish modal window