Add function for Detail screen