remove unused function on detailsview