angular controller and server connected