Code review, fix logic bug

add refreshDetail function