renamed api call for refactoring, deleted extra api file, fixed view test