style fixes, api calls changed to url_for