details page code formated