update route.php: filter and edit profile function