restructuring single.php