handled page refresh on the detailed view using getImageById service