implemented promises for update and get controllers