update packages
use $resouse instead of $http