update detail info function: UI finished