changed resource.php to api.php / new stylesheet