finished eventdetail.php backend