corrects styling, font problem, adds error catching to api controller