add a function loadfdetail()