add resouce and update controlle