add function on detail screen