Code design changes on carddav.php