implement the funtions in frmWindowFind