update detail.php

clean interface for detail