tweaking close script

grouping answer flags, moving to the top