cleaned up connections in farm view and user view