reorganized the javscript, css, and changed controller.php to service.php