reset the #main container before re-generating the filelist