modified get animals API
fixed confict view import