Use one less var in detail view

Signed-off-by: Kaustav Das Modak <kaustav.dasmodak@yahoo.co.in>