Updates to details.php and its controller