Catch API errors, change the ways errors are returned, some css changes.