Move details.php to views directory